const TOKENKEY = 'TOKEN'
const USER_DATA = 'USER_DATA'

export function getToken() {
    return uni.getStorageSync(TOKENKEY)
}
export function setToken(tokn) {
    return uni.setStorageSync(TOKENKEY, tokn)
}
export function removeToken() {
    return uni.removeStorageSync(TOKENKEY)
}

export function getUserdata() {
    return uni.getStorageSync(USER_DATA)
}
export function setUserdata(data) {
    return uni.setStorageSync(USER_DATA, data)
}
export function removeUserdata() {
    return uni.removeStorageSync(USER_DATA)
}